import { createBrowserRouter, RouteObject, RouterProvider } from 'react-router-dom';
import { routes } from '@/router/routes';

const router = createBrowserRouter(routes as RouteObject[]);

const Router = () => {
  return <RouterProvider router={router} />;
};

export default Router;
